/**
 * @param {HTMLElement} el
 * @param {string} visibility
 */
export function setElementVisibility(el: HTMLElement, visibility: string): void {
  if (!el) return
  try {
    el.style.visibility = visibility
  } catch (e) {
    console.error('Error setting element visibility:', e)
  }
} 